package com.yungu.swift.system.sys.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.service.BaseService;
import com.yungu.swift.system.sys.model.dto.SysResourceDto;
import com.yungu.swift.system.sys.model.dto.SysUserDto;
import com.yungu.swift.system.sys.model.param.AdminUserAddParam;
import com.yungu.swift.system.sys.model.param.AdminUserResetPasswordParam;

import java.util.List;


/**
 * SysUserService
 **/

public interface SysUserService extends BaseService<SysUserDto> {
    /**
     * 后台用户拥有的权限资源
     *
     * @param userUuid 参数
     * @return List
     */
    ResponseData<List<SysResourceDto>> queryUserAuthority(String userUuid);

    /**
     * 用户逾期修改密码
     *
     * @param resetPasswordParam
     * @return
     */
    ResponseData<Boolean> resetPassword(AdminUserResetPasswordParam resetPasswordParam);

    /**
     * 后台用户新增
     *
     * @param userAddParam
     * @return
     */
    ResponseData<Boolean> add(AdminUserAddParam userAddParam);

}